//
//  BKUserMobileConfigInfo.m
//  bestkeep
//
//  Created by windCould on 16/11/17.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKUserMobileConfigInfo.h"
#import "BKUserStatusInfo.h"
@implementation BKUserMobileConfigInfo


-(NSString *)app_name
{
//   NSString * appName = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString*)kCFBundleNameKey];
//    return appName;
    
    return @"BESTKEEP";
}

-(NSString *)device_type
{
    return @"10";
}


-(NSString *)device_token
{
    BKUserStatusInfo * userInfo = [BKUserStatusInfo currentUser];
    return userInfo.deveiceToken;
    return @"121-sdfsfas-sdfsad-asfasdf-af";
}

-(NSString *)device_udid
{
//    CFUUIDRef uuidRef = CFUUIDCreate(kCFAllocatorDefault);
//    
//    NSString * strUUID = (NSString *)CFBridgingRelease(CFUUIDCreateString (kCFAllocatorDefault,uuidRef));
    NSUUID * strUUID  = [UIDevice currentDevice].identifierForVendor;

    NSLog(@"%@",[NSString stringWithFormat:@"%@",[strUUID UUIDString]]);
    return [NSString stringWithFormat:@"%@",[strUUID UUIDString]];
}

-(NSString *)version
{
    NSDictionary* infoDict =[[NSBundle mainBundle] infoDictionary];
    NSString* versionNum =[infoDict objectForKey:@"CFBundleVersion"];
    NSString *version = [NSString stringWithFormat:@"%@.%@",[infoDict objectForKey:@"CFBundleShortVersionString"],versionNum];

   return version;
}


@end
